<?php
/**
 * Created by IntelliJ IDEA.
 * User: Fernando
 * Date: 22/10/2014
 * Time: 08:04
 */

namespace Fiestissima\CRM\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;

class OrdenCompraType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            ->add('orden_compra_id', 'text')
            ->add('orden_compra_fecha', 'text')
            ->add('orden_compra_contado', 'text')
            ->add('orden_compra_tarjeta', 'text')
            ->add('orden_compra_total', 'text');

    }

    public function getName()
    {
        return 'ordenCompra';
    }

    public function setDefaultOptions(OptionsResolverInterface $resolver)
    {
        $resolver->setDefaults(array(
            'data_class' => 'Fiestissima\CRM\Entity\OrdenCompra',
        ));
    }
} 